Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modification to allow multiple pagination objects on same page #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pipermerriam
Copy link

Currently, the page parameter produces conflicts when you have multiple pagination objects on the same page.

This patch provides an extra keyword argument to the Page object initialization and the paginator.page() call allowing you to customize the name of the query parameter used for generating the querystring within the page object.

All fo the tests pass, and this should not cause any backwards compatibility problems since the new argument is optional.

…gination elements on the same page.

The call to the paginator object to return a page object now accepts an
extra `page_param` argument.  This argument determines which query
parameter is used in the querystring generation, allowing for multiple
pagination objects on a single page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant